import request from '@/utils/request'

// 查询列表
export function listUser(query) {
  return request({
    url: '/yanjing/AccUser/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getUser(userId) {
  return request({
    url: '/yanjing/AccUser/' + userId,
    method: 'get'
  })
}

// 新增
export function addUser(data) {
  return request({
    url: '/yanjing/AccUser',
    method: 'post',
    data: data
  })
}

// 修改
export function updateUser(data) {
  return request({
    url: '/yanjing/AccUser',
    method: 'put',
    data: data
  })
}

// 删除
export function delUser(userId) {
  return request({
    url: '/yanjing/AccUser/' + userId,
    method: 'delete'
  })
}
export function disableUser(userId) {
  return request({
    url: '/yanjing/AccUser/disable/' + userId,
    method: 'post'
  })
}
export function listCompany(fullName) {
  return request({
    url: '/yanjing/company/listSelect',
    method: 'post',
    data: fullName
  })
}